
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>更改文章</title>
<link href="base.css" rel="stylesheet" type="text/css">
<script language="javascript" src="../include/dedeajax2.js"></script>
<script language='javascript' src='main.js'></script>

<script language="javascript">
<!--
<?php
echo $areacache;
echo $sectorcache;
?>
function checkSubmit()
{
   if(document.form1.title.value==""){
	 alert("标题不能为空！");
	 document.form1.title.focus();
	 return false;
  }
   if(document.form1.sectorchange.checked || document.form1.areachange.checked){
	 if (!confirm("您选择了更改行业或者地区，请确认吗？")) return false;
  }

}

-->
</script>
<script language='javascript' src='../include/common.js'></script>
</head>
<body topmargin="8">

<form name="form1" action="cominfoedit.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();">
<input type="hidden" name="channelid" value="<?php echo $channelid?>">
<input type="hidden" name="step" value="2">
<input type="hidden" name="ID" value="<?php echo $aid?>">
<input type="hidden" name="senddate" value="<?php echo $info['senddate']?>">
选择栏目：
<?php
echo GetTypeidSelMember('form1','typeid','selbt1',$channelid,$info['typeid'],$info['typename'],false);
?>
<br><br>

选择小分类：<select name="smalltypeid">
<option value="0">-不限-</option>
<?php echo $smalltypes;?>
</select>

<br><br>
选择地区：
<?php echo $areaidname; ?> - <?php echo $areaid2name; ?>
<input type="checkbox" name="areachange" onclick="javascript:showonobj('area',this.name)" />更改地区
<input type="hidden" name="oldareaid" value="<?php echo $info[areaid]; ?>" />
<input type="hidden" name="oldareaid2" value="<?php echo $info[areaid2]; ?>" />
<div id="area" style="display:none;">
<select name="areaid" id="areaid" onChange="javascript:selNext(this.document.form1.areaid2,this.value,'subareas')">
<option value="0">--不限--</option>
<?php
$dsql->SetQuery("Select * From #@__area where reid=0");
$dsql->Execute();
while($area = $dsql->GetArray())
{
	echo "<option value='".$area['id']."'>".$area['name']."</option>\r\n";
}
?>
</select>
<select name="areaid2" id="areaid2">
<option value="0">--不限--</option>
</select>
</div>

<br><br>
选择行业：
<?php echo $sectoridname; ?> - <?php echo $sectorid2name; ?>
<input type="checkbox" name="sectorchange" onclick="javascript:showonobj('sector',this.name)" />更改主营行业
<input type="hidden" name="oldsectorid" value="<?php echo $info[sectorid]; ?>" />
<input type="hidden" name="oldsectorid2" value="<?php echo $info[sectorid2]; ?>" />
<div id="sector" style="display:none;">
<select name="sectorid" id="sectorid" onChange="javascript:selNext(this.document.form1.sectorid2,this.value,'subsectors')">
<option value="0">--不限--</option>
<?php
$dsql->SetQuery("Select * From #@__sectors where reid=0");
$dsql->Execute();
while($sector = $dsql->GetArray())
{
	echo "<option value='".$sector['id']."'>".$sector['name']."</option>\r\n";
}
?>
</select>
<select name="sectorid2" id="sectorid2">
<option value="0">--不限--</option>
</select>
</div>
<br><br>

<br><br>
发布时间：
<?php
$nowtime = GetDateTimeMk($info["pubdate"]);
echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" style=\"width:200\">";
?>

<br><br>
有效期：<input type=text name=endtime value="<?php echo $info['endtime']?>" />天
<br><br>
标题：<input type=text name=title value="<?php echo $info['title']?>" />
<br>

<br>

缩略图：
<table id="pictable" width="800" border="0" cellspacing="0" cellpadding="0">
	               <tr>
                  <td height="28" align="center" bgcolor="#F7FDF0">缩略图：</td>
                  <td colspan="3" bgcolor="#F7FDF0">
<input name="litpic" type="file" id="litpic" style="width:300" onChange="SeePic($Obj('picview'),$Obj('litpic'),$Obj('picarea'));"></td>
                </tr>
                <tr id="picarea" style="<?php  if($info['litpic']) echo "display:block"; else echo "display:none"; ?>">
                  <td colspan="4" align="center" bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="18%" height="110">&nbsp;</td>
                        <td width="82%"><img src="<?php  if($info['litpic']){ echo $info['litpic']; }else{ echo "img/pview.gif"; } ?>" id="picview" width="150" height="120"></td>
                      </tr>
                    </table>                  </td>
                </tr>
</table>
<br>
关键词：<input type=text name=keywords value="<?php echo $info['keywords']?>" />
<br><br>
文章摘要：
<textarea name="description" rows="3" id="description" style="width:200"><?php echo $info['description']; ?></textarea>
<br><br>
联系人：<input type=text name=contact value="<?php echo $info['contact']?>" />
<br><br>
电话：<input type=text name=phone value="<?php echo $info['phone']?>" />
<br><br>
传真：<input type=text name=fax value="<?php echo $info['fax']?>" />
<br><br>
email：<input type=text name=email value="<?php echo $info['email']?>" />
<br><br>
qq：<input type=text name=qq value="<?php echo $info['qq']?>" />
<br><br>
msn：<input type=text name=msn value="<?php echo $info['msn']?>" />
<br><br>
地址：<input type=text name=address value="<?php echo $info['address']?>" />
<br><br>
内容:
<input name="remote" type="checkbox" class="np" id="remote" value="1" >
下载远程图片和资源
<input name="autolitpic" type="checkbox" class="np" id="autolitpic" value="1" >
提取第一个图片为缩略图
<?php
	GetEditor("body",$body,450,"MemberLit");
	?>

<input name="imageField" type="image" src="img/button_ok.gif" width="60" height="22" border="0">
<img src="img/button_reset.gif" width="60" height="22" border="0" onClick="location.reload();" style="cursor:hand">
</form>
<?php
$dsql->Close();
?>
</body>
</html>